import { headerCategory } from '@/api/user'
export default {
  namespaced: true,
  state: {
    headerList: []
  },
  mutations: {
    setHeaderList(state, data) {
      state.headerList = data
    }
  },
  actions: {
    async asyncSetHeaderList({ commit }) {
      const res = await headerCategory('/home/category/head', 'get')
      commit('setHeaderList', res)
      // commit('setHeaderList')
    }
  }
}
